﻿using UnityEngine;
using System.Collections;

public class StartUIMgr : MonoBehaviour {

    public Transform loginUI;

    public Transform RegistUI;

    public static StartUIMgr Instance;

    void Awake()
    {
        Instance = this;
    }


    public void LoginUI_Show()
    {
        if (RegistUI.gameObject.activeSelf)
        {
            RegistUI.gameObject.SetActive(false);
        }

        if (!loginUI.gameObject.activeSelf)
        {
            loginUI.gameObject.SetActive(true);
        }

    }


    public void RegistUI_Show()
    {
        if (loginUI.gameObject.activeSelf)
        {
            loginUI.gameObject.SetActive(false);
        }

        if (!RegistUI.gameObject.activeSelf)
        {
            RegistUI.gameObject.SetActive(true);
        }

    }
    
}
